#Region "File Description"
'-----------------------------------------------------------------------------
' PlayerIndexEventArgs.cs
'
' XNA Community Game Platform
' Copyright (C) Microsoft Corporation. All rights reserved.
'-----------------------------------------------------------------------------
#End Region

#Region "Using Statements"
Imports Microsoft.Xna.Framework
#End Region

''' <summary>
''' Custom event argument which includes the index of the player who
''' triggered the event. This is used by the MenuEntry.Selected event.
''' </summary>
Class PlayerIndexEventArgs
	Inherits EventArgs
	''' <summary>
	''' Constructor.
	''' </summary>
	Public Sub New(playerIndex As PlayerIndex)
		Me.m_playerIndex = playerIndex
	End Sub


	''' <summary>
	''' Gets the index of the player who triggered this event.
	''' </summary>
	Public ReadOnly Property PlayerIndex() As PlayerIndex
		Get
			Return m_playerIndex
		End Get
	End Property

	Private m_playerIndex As PlayerIndex
End Class
